package lab01;

import java.util.Scanner;

public class Testo8 {
    public static void main(String[] args){
        System.out.println("请输入你猜测的数");
        int n=new Scanner(System.in).nextInt();

        int i=85;
        while(n!=i){
            if(n>i){
                System.out.println("你猜大了");
                n=new Scanner(System.in).nextInt();
            }
            else if(n<i){
                System.out.println("你猜小了");
                n=new Scanner(System.in).nextInt();
            }
        }
            System.out.println("你猜对了");

    }

}
